package com.ztsoft.user.pojo.entity.dynamic;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.ztsoft.user.pojo.entity.user.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 动态表单
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_dynamic_form")
@EqualsAndHashCode(callSuper = true)
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public class DynamicForm extends BaseEntity {
    @TableId(type = IdType.ASSIGN_UUID)
    private String id;// '主键'
    //表格编码
    private String tableCode;
    //表单类型    用来处理在什么地方显示的，例：formList
    private String formType;
    //描述
    private String describes;
    //文本宽度
    private String labelWidth;
    //行内表单
    private Boolean inline;
    //表单名称
    private String formName;

    /**
     * 创建时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 修改时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date modifyTime;
    /**
     * 创建id
     */
    private String createId;
    /**
     * 修改id
     */
    private String modifyId;
    /**
     * 是否删除
     */
    private Integer isDelete;
}